package edu.sysu.demo.petstore.dog.web.rest;

import lombok.Getter;

@Getter
public enum Location {
  REGISTER("/account/register"),
  LOGIN("/account/login"),
  PUBLIC_KEY("/key/public");

  private static final String HOST = "localhost";

  private static final int PORT = 10010;

  private static final String FORMAT = "http://%s:%d%s";

  private final String url;

  Location(String url) {
    this.url = String.format(FORMAT, HOST, PORT, url);
  }
}
